package com.schmix.dpp;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.Button;

public class ResultsDialog extends Dialog{

	public ResultsDialog(Context context) {
		super(context);
		setContentView(R.layout.needs_disp);
//		setContentView(R.layout.needs_disp_table);
		setCancelable(false);
	}
	
	public void showResults(){
		if (null != this){
			final Button dismissBtn = (Button) findViewById(R.id.results_dismiss_btn);
			dismissBtn.setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					removeResults();
				}
			});
			show();
		}
	}
	
	public void removeResults(){
		if (null != this){
			dismiss();
		}
	}

}
